package router

import (
	"examination-management/api/cmd/config"
	"examination-management/api/handler/api"
	"github.com/gin-gonic/gin"
	jwt2 "github.com/golangblogs/gojwt"
)

func UserModel(r *gin.RouterGroup) {
	userModel := r.Group("user")
	{
		userModel.POST("/createUser", api.CreateUser)
		userModel.POST("/loginUser", api.LoginUser)
		userModel.Use(jwt2.JWTAuth(config.JWT_SELECT_KEY))
		userModel.POST("/updateUser", api.UpdateUser)
		userModel.POST("/queryUserInfo", api.QueryUserInfo)
		userModel.POST("/queryUserInfoTime", api.QueryUserInfoTime)
	}
}
